package com.hydra.base.operate.log.common;

import com.hydra.base.operate.log.dto.CommonData;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 字典值常量类
 */
public class DictDataConstant {

	public final static Map<String, List<CommonData>> dictMap = new HashMap<>();

	/**性别*/
	public static final String COMMON_DICT_KEY_GENDER = "COMMON_DICT_KEY_GENDER";
	static {
		List<CommonData> list = new ArrayList<>();
		list.add(new CommonData().setCode("MALE").setName("男"));
		list.add(new CommonData().setCode("FEMALE").setName("女"));
		dictMap.put(COMMON_DICT_KEY_GENDER, list);
	}

	/**是否（常量：Y-是、N-否）*/
	public static final String COMMON_DICT_KEY_YES = "COMMON_DICT_KEY_YES";
	static {
		List<CommonData> list = new ArrayList<>();
		list.add(new CommonData().setCode("Y").setName("是"));
		list.add(new CommonData().setCode("N").setName("否"));
		dictMap.put(COMMON_DICT_KEY_YES, list);
	}

	/**是否（常量：Y-是、N-否）*/
	public static final String COMMON_DICT_KEY_STATUS = "COMMON_DICT_KEY_STATUS";
	static {
		List<CommonData> list = new ArrayList<>();
		list.add(new CommonData().setCode("LOCK").setName("停用"));
		list.add(new CommonData().setCode("OPEN").setName("启用"));
		dictMap.put(COMMON_DICT_KEY_STATUS, list);
	}

}
